﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using BLToolkit.DataAccess;
using BLToolkit.EditableObjects;

namespace Devsoft.DB.Models.EditableObject
{
    [Serializable]
    public abstract class ModelWithId<T> : Model<T>, IObjectWithPrimaryKey
        where T : Model<T>
    {
        [PrimaryKey, Identity]
        [DataMember]
        public virtual int ID
        {
            get;
            set;
        }
    }
}
